package com.xoa.controller.guideGoal;

import com.xoa.model.guideGoal.GuideGoalBackReply;
import com.xoa.service.guideGoal.GuideGoalBackReplyService;
import com.xoa.util.ToJson;
import com.xoa.util.common.wrapper.BaseWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by gsb on 2017/8/7.
 */
@RestController
@RequestMapping("/dljSupFeedBackReply")
public class GuideGoalBackReplyController {
    @Autowired
    GuideGoalBackReplyService guideGoalBackReplyService;

    @RequestMapping("/insertsupFeedBackReply")
    public BaseWrapper insertsupFeedBackReply(GuideGoalBackReply guideGoalBackReply, HttpServletRequest request){
        return  guideGoalBackReplyService.insetrtSupFeedBackReply(guideGoalBackReply,request);

    }
    @RequestMapping("/deleteByPrimaryKey")
    public ToJson<GuideGoalBackReply> deleteByPrimaryKey(HttpServletRequest request, Integer sid){

        return  guideGoalBackReplyService.deleteByPrimaryKeySupFeedBackReply(request,sid);
    }
}
